/**
 * modelfactory.h is part of cbs-framework.
 *
 * cbs-framework is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * cbs-framework is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with cbs-framework.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef MODELFACTORY_H
#define MODELFACTORY_H

#include <string>

#define GET_MODEL_FACTORY() ( ModelFactory::Instance() )

// Forward declarations.
class Model;

class ModelFactory
{
public:
    ~ModelFactory() {}

    static ModelFactory & Instance();

    Model * CreateModel( const std::string & a_modelName );

private:

    static ModelFactory m_instance;

    // Protect default constructor.
    ModelFactory() {}

    // Protect default copy constructor.
    ModelFactory( const ModelFactory & a_other );

    // Protect default operator =.
    ModelFactory & operator = ( const ModelFactory & a_other );
};

#endif // MODELFACTORY_H
